package com.wcy.mapper;

import com.wcy.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-28
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {
    @Select("select * from user_role where user_id=#{userId}")
    List<UserRole> listByUserId(Integer userId);
}

